package com.kamistoat.ruoyi.ruoyimodulessystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kamistoat.ruoyi.ruoyiapisystem.domain.SysDictType;
import com.kamistoat.ruoyi.ruoyicommoncore.utils.page.PageUtils;
import com.kamistoat.ruoyi.ruoyiapisystem.entity.SysDictTypeEntity;

import java.util.List;
import java.util.Map;

/**
 * 字典类型表
 *
 * @author kamistoat
 * @email linjianshanke@163.com
 * @date 2022-08-09 10:34:46
 */
public interface SysDictTypeService extends IService<SysDictTypeEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<SysDictTypeEntity> selectDictTypeList(SysDictType sysDictType);

    /**
     * 判断字典类型是否已经存在
     */
    boolean checkDictTypeUnique(SysDictType sysDictType);

    /**
     * 修改字典类型并更新缓存
     */
    boolean updateDictTypeAndCache(SysDictTypeEntity sysDictTypeEntity);

    /**
     * 删除并删除缓存
     */
    boolean deleteDictTypeByIdsAndRemoveCache(Long[] dictIds);

    void resetDictCache();
}

